package com.huazhi.wzsnw.mapper;

import com.huazhi.wzsnw.model.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentMapper {
    int deleteByPrimaryKey(String tid);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(String tid);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

    List<Department> findPagingByListTid(@Param("listTid") List<String> listTid, @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);

    List<String> selectDepartmentBySearch(@Param("search") String search);

    Department selectDepartmentByField(@Param("field") String field, @Param("value") String value);

    Department selectDepartmentByTidExist(@Param("tid") String tid, @Param("departmentname") String name);

    List<Department> selectList();

    List<String> getAllDepartmentNames();



}